package net.bac.sbe.web.sonar.client.view;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

public class RepositoryView implements Serializable {

	/**
	 *
	 */
	private static final long serialVersionUID = -6917655013068199333L;

	String svnURL;
	String repositoryName;

	List<ApplicationView> applications = new ArrayList<ApplicationView>(1);

	public String getSvnURL() {
		return svnURL;
	}

	public void setSvnURL(String svnURL) {
		this.svnURL = svnURL;
	}

	public String getRepositoryName() {
		return repositoryName;
	}

	public void setRepositoryName(String repositoryName) {
		this.repositoryName = repositoryName;
	}

	public List<ApplicationView> getApplications() {
		return applications;
	}

	public void setApplications(List<ApplicationView> applications) {
		this.applications = applications;
	}

	public void addApplication(ApplicationView view){
		this.applications.add(view);
	}

	@Override
	public String toString() {
		return "RepositoryView [svnURL=" + svnURL + ", repositoryName="
				+ repositoryName + ", applications=" + applications + "]";
	}




}
